<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Xenon Boostrap Admin Panel" />
    <meta name="author" content="" />

    <title>飞科文化</title>

    *{<link rel="stylesheet" href="http://fonts.useso.com/css?family=Arimo:400,700,400italic">}*
    <link rel="stylesheet" href="/public/css/fonts/linecons/css/linecons.css">
    <link rel="stylesheet" href="/public/css/fonts/fontawesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/public/css/bootstrap.css">
    <link rel="stylesheet" href="/public/css/xenon-core.css">
    <link rel="stylesheet" href="/public/css/xenon-forms.css">
    <link rel="stylesheet" href="/public/css/xenon-components.css">
    <link rel="stylesheet" href="/public/css/xenon-skins.css">
    <link rel="stylesheet" href="/public/css/custom.css">
    <link rel="stylesheet" href="/public/js/bootstrap-select/css/bootstrap-select.min.css">


    <link rel="stylesheet" href="/public/js/daterangepicker/daterangepicker-bs3.css">

    *{<script src="/public/js/jquery-ui/external/jquery/jquery.js"></script>}*
    <script src="/public/js/jquery-1.11.1.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script src="/public/js/toastr/toastr.min.js"></script>
    <script src="/public/lib/layer/js/layer.js"></script>



</head>
<body class="page-body">
<div class="copyrights">Collect from <a href="http://www.cssmoban.com/"  title="网站模板">网站模板</a></div>
<div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->

    <!-- Add "fixed" class to make the sidebar fixed always to the browser viewport. -->
    <!-- Adding class "toggle-others" will keep only one menu item open at a time. -->
    <!-- Adding class "collapsed" collapse sidebar root elements and show only icons. -->

    #{include '/template/menu.html'/}

    <div class="main-content">

        <!-- User Info, Notifications and Menu Bar -->
        #{include '/template/top.html'/}

    #{doLayout /}



        <!-- Main Footer -->
        <!-- Choose between footer styles: "footer-type-1" or "footer-type-2" -->
        <!-- Add class "sticky" to  always stick the footer to the end of page (if page contents is small) -->
        <!-- Or class "fixed" to  always fix the footer to the end of page -->
        <footer class="main-footer sticky footer-type-1">

            <div class="footer-inner">

                <!-- Add your copyright text here -->
                <div class="footer-text">
                    &copy; 2017
                    <strong>FEIKE</strong>
                    后台管理系统
                </div>


                <!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
                <div class="go-up">

                    <a href="#" rel="go-top">
                        <i class="fa-angle-up"></i>
                    </a>

                </div>

            </div>

        </footer>
    </div>




</div>


<div class="page-loading-overlay">
    <div class="loader-2"></div>
</div>




<!-- deleteModal (Custom Width)-->
<div class="modal fade custom-width" id="deleteModal">
    <div class="modal-dialog" style="width: 50%;margin-top: 15%">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">是否确认删除</h4>
                <input type="hidden" name="deleteId" id="deleteId" />
            </div>

            <div class="modal-body">
                *{您是否确认删除该信息?}*
                <textarea class="form-control" style="height: 80px;" id="idRemark" data-validate="required" placeholder="请输入备注"></textarea>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" onclick="sureDeleted();" class="btn btn-info">确认删除</button>
            </div>
        </div>
    </div>
</div>



<!-- saveSuccess (Custom Width)-->
<div class="modal fade custom-width" id="saveSuccessModal">
    <div class="modal-dialog" style="width: 50%;margin-top: 15%">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">操作成功</h4>
                <input type="hidden" name="deleteId" id="deleteId" />
            </div>

            <div class="modal-body">
                <span id="saveSuccessMsg"></span>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-info" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- confirmModal (Custom Width)-->
<div class="modal fade custom-width" id="confirmModal">
    <div class="modal-dialog" style="width: 50%;margin-top: 15%">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">确认信息框</h4>
            </div>

            <div class="modal-body">#content#</div>

            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" onclick="sureConfirm();" class="btn btn-info">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- disableConfirmModal (Custom Width)-->
<div class="modal fade custom-width" id="disableConfirmModal">
    <div class="modal-dialog" style="width: 50%;margin-top: 15%">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">确认信息框</h4>
                <input type="hidden" name="operateId" id="operateId" />
                <input type="hidden" name="operatetype" id="operateType" />
            </div>

            <div class="modal-body">#content#</div>

            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" onclick="sureDisableConfirm();" class="btn btn-info">确认</button>
            </div>
        </div>
    </div>
</div>


<!-- 菜单弹出框-->
<div class="modal fade" id="menuItemDetail">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">菜单详情</h4>
            </div>
            <div class="modal-body">
                <form id="id_admin_menu_item" action="/power/admin/AdminMenuCtrl/saveAdminMenuItem" role="form" class="form-horizontal" method="post">
                    <input id="id_menu_item_id" name="adminMenuItem.id" type="hidden">
                    <input id="id_menu_id" name="adminMenuItem.menuId" type="hidden">
                    <input id="id_menu_item_parent_id" name="adminMenuItem.parentId" type="hidden">
                    <input id="id_menu_item_pageNumber" name="pageNumber" type="hidden">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">菜单名称:</label>
                        <div class="col-sm-9">
                            <input id="id_menu_item_name" name="adminMenuItem.name" type="text" class="form-control" value=""  placeholder="请输入菜单名称">
                        </div>
                    </div>
                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">上级菜单:</label>
                        <div class="col-sm-9">
                            <input id="parent_menu_item_name" type="text" class="form-control" value=""  readonly>
                        </div>
                    </div>
                    <div class="form-group-separator"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="business-list">选择业务:</label>
                        <div class="col-sm-9">
                            <input id="id_bussiness_id" name="adminMenuItem.business.id" type="hidden">
                            <input id="id_bussiness_name" class="form-control" readonly type="text" placeholder="选择业务" onclick="selectBussiness()">
                        </div>
                    </div>

                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="id_menu_item_show_order">排序号:</label>
                        <div class="col-sm-9">
                            <input id="id_menu_item_show_order" name="adminMenuItem.showOrder" class="form-control" type="text" value="0" >
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-info" onclick="saveMenuItem()">保存</button>
            </div>
        </div>
    </div>
</div>

<!-- 部门信息弹出框-->
<div class="modal fade" id="adminDeptModal">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">部门详情</h4>
            </div>
            <div class="modal-body">
                <form id="adminDeptForm" role="form" action="/power/admin/AdminDeptCtrl/saveDeptDetail" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">部门名称:</label>
                        <div class="col-sm-9">
                            <input id="id_dept_id" name="adminDept.id" type="hidden">
                            <input id="id_parent_id" name="adminDept.parentId" type="hidden">
                            <input id="id_dept_name" name="adminDept.name" type="text" class="form-control" value=""  placeholder="请输入部门名称">
                        </div>
                    </div>
                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="parent_menu_item_name">部门编号:</label>
                        <div class="col-sm-9">
                            <input id="id_dept_code" name="adminDept.code" readonly  class="form-control" placeholder="部门编号由系统生成">
                        </div>
                    </div>

                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="parent_menu_item_name">排序号:</label>
                        <div class="col-sm-9">
                            <input id="dept_id_show_order" name="adminDept.showOrder" class="form-control" type="number" value="0" placeholder="排序号">
                        </div>
                    </div>
                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="parent_menu_item_name">备注:</label>
                        <div class="col-sm-9">
                            <input id="id_dept_remark" name="adminDept.remark"  class="form-control" placeholder="备注">
                        </div>
                    </div>


                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-info" onclick="saveDeptDetail()">保存</button>
            </div>
        </div>
    </div>
</div>

<!-- 课程减少一次确认操作 (Custom Width)-->
<div class="modal fade custom-width" id="idOperateModel">
    <div class="modal-dialog" style="width: 50%;margin-top: 15%">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">确认信息框</h4>
                <input type="hidden" name="id" id="entity_id" />
                <input type="hidden" name="type" id="id_add_or_minus" />
            </div>

            <div class="modal-body">#content#</div>

            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" onclick="sureOperate();" class="btn btn-info">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- 修改登录密码-->
<div class="modal fade" id="id_update_password">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">密码修改</h4>
            </div>
            <div class="modal-body">
                <form id="id_admin_user" action="" role="form" class="form-horizontal" method="post">
                    *{<input id="id_admin_user_id" name="adminUser.id" type="hidden">}*
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">请输入新密码:</label>
                        <div class="col-sm-9">
                            <input id="id_admin_user_password" name="adminUser.password" type="password" class="form-control" value="" required  placeholder="请输入密码">
                        </div>
                    </div>
                    <div class="form-group-separator"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">重复新密码:</label>
                        <div class="col-sm-9">
                            <input id="re_admin_user_password" type="password" class="form-control" value="" required placeholder="请重复输入密码">
                        </div>
                    </div>
                    <div class="form-group-separator"></div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-info" onclick="savePassWord()">保存</button>
            </div>
        </div>
    </div>
</div>

<!-- 发票确认-->
<div class="modal fade" id="idInvoiceModel">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">发票确认</h4>
            </div>
            <div class="modal-body">
                <form id="id_order_invoice" action="" role="form" class="form-horizontal" method="post">
                <input id="id_order_invoice_id" name="order.id" type="hidden">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name"></label>
                        <div class="col-sm-9">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name">发票编号:</label>
                        <div class="col-sm-9">
                            <input id="id_invoice_code" name="invoiceCode" type="text" class="form-control" value="" required  placeholder="请填写发票编号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="menu_item_name"></label>
                        <div class="col-sm-9">
                        </div>
                    </div>

                    *{<div class="form-group-separator"></div>}*

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-info" onclick="saveInvoiceCode()">确认已开票</button>
            </div>
        </div>
    </div>
</div>


<!-- Bottom Scripts -->
<script src="/public/js/bootstrap.min.js"></script>
<script src="/public/js/TweenMax.min.js"></script>
<script src="/public/js/resizeable.js"></script>
<script src="/public/js/joinable.js"></script>
<script src="/public/js/xenon-api.js"></script>
<script src="/public/js/xenon-toggles.js"></script>
<script src="/public/js/bootstrap-select/js/bootstrap-select.min.js"></script>


<!-- Imported scripts on this page -->
<script src="/public/js/xenon-widgets.js"></script>
<script src="/public/js/devexpress-web-14.1/js/globalize.min.js"></script>
<script src="/public/js/devexpress-web-14.1/js/dx.chartjs.js"></script>

<script src="/public/js/daterangepicker/daterangepicker.js"></script>
<script src="/public/js/datepicker/bootstrap-datepicker.js"></script>


<!-- JavaScripts initializations and stuff -->
<script src="/public/js/xenon-custom.js"></script>

<script type="text/javascript">
    function deletedComfim(id) {
        $('#deleteId').val(id);
        jQuery('#deleteModal').modal('show');
    }

    function saveSuccess(msg) {
        $('#saveSuccessMsg').html(msg);
        jQuery('#saveSuccessModal').modal('show');
    }

    function normalComfim(content) {
        var realConfirm = $("#confirmModal").clone();
        realConfirm.html(realConfirm.html().replace("#content#",content));
        realConfirm.modal('show');
    }



    function disablaComfim(id , type) {
        $('#operateId').val(id);
        $('#operateType').val(type);
        var content = '确认启用?';
        if(type == 2)
            content = '确认禁用?';
        var realConfirm = $("#disableConfirmModal").clone();
        realConfirm.html(realConfirm.html().replace("#content#",content));
        realConfirm.modal('show');
    }

    function operateSureModel(id , type) {
        $('#entity_id').val(id);
        $('#id_add_or_minus').val(type);

        var content = '您确认,课程数量减少一次?';
        if(type == 1)
            content = '您确认,课程数量增加一次??';
        var realConfirm = $("#idOperateModel").clone();
        realConfirm.html(realConfirm.html().replace("#content#",content));
        realConfirm.modal('show');
    }



</script>

</body>
</html>